UploadServerCertificate
Description
call the UploadServerCertificate to upload the server certificate.
Request Method
POST
Request Path
/apsara/route/Slb/UploadServerCertificate
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
ServerCertificate | BODY | string | No | test | public key certificate to be uploaded. Note If you do not use the Alibaba Cloud certificate, this parameter is required. |
AliCloudCertificateName | BODY | string | No | testcertkey | the cloud certificate name of alibaba cloud. |
PrivateKey | BODY | string | No | wmsa**** | the private key to be uploaded. Note If you do not use the Alibaba Cloud certificate, this parameter is required. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
ServerCertificateName | BODY | string | No | mycert01 | the name of the server certificate to upload. The name must be 1 to 80 English or Chinese characters in length. It must start with a large or small letter or Chinese, and can contain numbers, periods (.), underscores (_), and dashes (-). |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the server certificate. you can query the region by calling DescribeRegions interface ID. |
version | BODY | string | No | 2016-01-01 | version of api |
Tags | BODY | string | No | ServerCertificate**** | tag. |
AliCloudCertificateId | BODY | string | No | 730912673******_15d97e7709a_71445759hr_7892****** | the cloud certificate ID of alibaba cloud. Use the Alibaba Cloud certificate. This parameter is required. |
StandardType | BODY | string | No | ServerCertificate | standard type. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RegionIdAlias | string | hangzhou | instance region name. |
Fingerprint | string | 01:DF: AB :** | fingerprint of the server certificate. |
AliCloudCertificateName | string | testcert**** | the name of the server certificate in alibaba cloud certificate service. |
RequestId | string | 365F4154-92F6-4AE4-92F8-7FF34B540710 | request ID. |
IsAliCloudCertificate | integer | 0 | is a certificate in alibaba cloud certificate service. 0: indicates that it is not an alibaba cloud certificate. 1: indicates an alibaba cloud certificate. |
ServerCertificateId | string | xxxxidkp-123-cn-test**** | server certificate ID. |
ServerCertificateName | string | mycert01 | server certificate name. |
RegionId | string | cn-qingdao-env17-d01 | the region ID to which the certificate belongs. |
AliCloudCertificateId | string | 730912xxxxx_15d97e7709a_71445759hr_7**** | the server certificate ID in alibaba cloud certificate service. |
Example
Successful Response example
{
"RegionIdAlias":"hangzhou",
"Fingerprint":"01:DF: AB :**",
"AliCloudCertificateName":"testcert****",
"RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
"IsAliCloudCertificate":"0",
"ServerCertificateId":"xxxxidkp-123-cn-test****",
"ServerCertificateName":"mycert01",
"RegionId":"cn-qingdao-env17-d01",
"AliCloudCertificateId":"730912xxxxx_15d97e7709a_71445759hr_7****"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}